﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;
namespace AjaxSnippets
{
    internal static class Config
    {
        internal static Dictionary<string, string> Mappings = new Dictionary<string, string>();

        static Config()
        {
            // Default mappings
            Mappings.Add("Default", "fromAny");
            Mappings.Add("System.Web.UI.WebControls.TextBox", "fromTextBox");
            Mappings.Add("System.Web.UI.WebControls.DropDownList", "fromDropDown");
            Mappings.Add("System.Web.UI.WebControls.RadioButtonList", "fromRadioList");
            Mappings.Add("System.Web.UI.WebControls.CheckBoxList", "fromCheckList");

            object configObject = ConfigurationManager.GetSection("ajaxSnippets");

            if (configObject != null)
            {
                // TODO: Override mappings or Add mappings from configuration
            }
        }
    }
}
